package com.corechina.apex_osswords.domain.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.corechina.apex_osswords.domain.entity.CoreKnowledgeBaseType;
import com.corechina.apex_osswords.domain.vo.CoreKnowledgeBaseTypeVo;
import com.corechina.apex_osswords.domain.vo.CoreKnowledgeBaseVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 知识库分类表 Mapper 接口
 * </p>
 *
 * @author fyh
 * @since 2023-02-03
 */
@Component
public interface CoreKnowledgeBaseTypeMapper extends BaseMapper<CoreKnowledgeBaseType> {

    IPage<CoreKnowledgeBaseTypeVo> getList(Page page, @Param("name") String name, @Param("enterpriseId") Integer enterpriseId);

    IPage<CoreKnowledgeBaseTypeVo> getListForWeiXin(Page page, @Param("enterpriseId") Integer enterpriseId);
}
